package 核心API的使用;

import java.time.LocalDateTime;

public class TestLocalDateTime {
    public static void main(String[] args) {
      LocalDateTime ldt =  LocalDateTime.now();
      LocalDateTime ldt2 = LocalDateTime.of(2020,12,8,12,55);
        System.out.println(ldt);
        System.out.println(ldt2);
        String str = "2023-09-15";
        LocalDateTime ldt3 = LocalDateTime.parse(str);
        System.out.println(ldt3);
    }
}
